import authenticationRepository from '@/repositories/authentication'

const getFunctionListByFormNo = async (refNo) => {
  let response = await authenticationRepository.getFunctionListByFormNo(refNo)
  let functionList = response
  let filterFunctionList = {}
  functionList.forEach((functionName) => {
    filterFunctionList[functionName] = true
  })
  return filterFunctionList
}

export default {
  getFunctionListByFormNo: getFunctionListByFormNo
}
